﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace University.Controllers
{
    public class AdminController : Controller
    {
        //
        // GET: /Admin/

        public ActionResult Index()
        {
            
            var viewModel = "Trang chu admin";
            return View("Index", "_LayoutAdmin", viewModel);
        }

        public ActionResult Logout()
        {
            return View();
        }
        public ActionResult School()
        {
            return View();
        }

        public ActionResult Major()
        {
            return View();
        }
        public ActionResult DetailEnrolling()
        {
            return View();
        }
        public ActionResult Login()
        {
            //var sUsername = txt
            return View();
        }
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Login(string txtUsername, string txtPassword)
        {
            Session["oAdmin"] = "Tam Vu";

            //var sUsername = txt
            return RedirectToAction("Index","Admin");
        }
    }
}
